using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace MMM.Services.Type
{
    [Serializable]
    [Route("/api/department", "POST,GET,DELETE,PUT")]
    public class Department : EntityBase<Department>
    {
        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Name { get; set; }
        /// <summary>
        /// 上级部门
        /// </summary>
        [Required]
        public Guid? ParentID { get; set; }
        /// <summary>
        /// 级别
        /// </summary>
        [Required]
        public int Dlevel { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(200)]
        public String Remarks { get; set; }

    }
}
